<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Chapter02</title>
</head>

<body>
<center><h3> Chapter 02 - Understanding JavaServer Pages</h3></center>
This chapter introduces the JavaServer pages (JSP) technology. We have shown three ways to print "Hello World" on the browser - the pure HTML way, the Servlet way, and the JSP way. To execute these examples, either type the following URLs yourself or click on the following links:
<br><br>
<table>

<tr><td>Common: Hello.html</td><td><a href="http://localhost:8080/chapter02/Hello.html">http://localhost:8080/chapter02/Hello.html</a></td></tr>

<tr><td>&nbsp;</td><td></td></tr>

<tr><td>To John: Hello Servlet</td><td><a href="http://localhost:8080/chapter02/servlet/HelloServlet?userName=John">http://localhost:8080/chapter02/servlet/HelloServlet?userName=John</a></td></tr>

<tr><td>To John: Hello.jsp</td><td><a href="http://localhost:8080/chapter02/Hello.jsp?userName=John">http://localhost:8080/chapter02/Hello.jsp?userName=John</a></td></tr>

<tr><td>&nbsp;</td><td></td></tr>

<tr><td>To Mary: Hello Servlet</td><td><a href="http://localhost:8080/chapter02/servlet/HelloServlet?userName=Mary">http://localhost:8080/chapter02/servlet/HelloServlet?userName=Mary</a></td></tr>

<tr><td>To Mary: Hello.jsp</td><td><a href="http://localhost:8080/chapter02/Hello.jsp?userName=Mary">http://localhost:8080/chapter02/Hello.jsp?userName=Mary</a></td></tr>


</table>

<br>
<br>
Note: If you have tomcat running on a different port than 8080, please replace 8080  in the URL with the port number you are using.


</body>
</html>
